export default {
  //邻里圈--列表
  loadCircleListServer(params, callback) {
    Vue.http.get('/life/record/listpage.json', {params: params}).then(function (response) {
      callback(response.data);
    });
  },
  //邻里圈--置顶
  handleUpServer(params, callback) {
    Vue.http.put('/life/record/top/do.json', params).then(function (response) {
      callback(response.data);
    });
  },
  //邻里圈--取消置顶
  handleCancelUpServer(params, callback) {
    Vue.http.put('/life/record/top/cancel.json', params).then(function (response) {
      callback(response.data);
    });
  },
  //邻里圈--评论下架
  handleCommentDownServer(params, callback) {
    Vue.http.put('/life/record//comment/publish/cancel.json', params).then(function (response) {
      callback(response.data);
    });
  },
  //邻里圈--评论上架
  handleCommentUpServer(params, callback) {
    Vue.http.put('/life/record//comment/publish/do.json', params).then(function (response) {
      callback(response.data);
    });
  },
  //邻里圈--详情
  loadCircleDetailServer(params, callback) {
    Vue.http.get('/life/record/detail.json', {params: params}).then(function (response) {
      callback(response.data);
    });
  },
  //邻里圈--详情内评论列表
  loadCommentListServer(params, callback) {
    Vue.http.get('/life/record//comment/listpage.json', {params: params}).then((response) => {
      callback(response.data);

    });
  },
  //邻里圈--上架
  upCircleServer(params, callback) {
    Vue.http.put('/life/record/publish/do.json', params).then((response) => {
      callback(response.data);

    });
  },
  // 邻里圈--下架
  downCircleServer(params, callback) {
    Vue.http.put('/life/record/publish/cancel.json', params).then(response => {
      callback(response.data);
    });
  },
}
